package com.codemonkey.lq.test.sampledata.deprecated;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ObjectUtil;

/**
 * @author LQ
 * @deprecated 之后的项目不要再使用本类了
 */
@Deprecated
public class BookDeprecated implements Comparable<BookDeprecated> {

	// private Person author;
	private String title;
	private String publisher;
	private String isbn;
	private double price;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getPublisher() {
		return publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	public String getIsbn() {
		return isbn;
	}

	public void setIsbn(String isbn) {
		this.isbn = isbn;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int compareTo(BookDeprecated o) {
		return 0;
	}

	@Override
	public String toString() {
		return ObjectUtil.toString(BeanUtil.beanToMap(this));
	}

	@Override
	public int hashCode() {
		return 0;
	}
}
